<!--<?php
include_once PrintEot('m_header');print <<<EOT
-->
<div class="infobox cc" style="height:77px;">
<table border="0" cellpadding="0" cellspacing="0" class="vt">
	<tr>
		<td>
			<div class="p10 f14 b">随便看看</div>
			<div id="person-nav" style="position:absolute;bottom:-1px;_bottom:-2px;padding-left:0;width:600px;">
				<ul>
					<li id="b_h"><a href="{$basename}q=browse">社区热门</a></li>
					<li id="b_w"><a href="{$basename}q=browse&tab=w">记录</a></li>
<!--
EOT;
if($db_phopen){print <<<EOT
-->
					<li id="b_p"><a href="{$basename}q=browse&tab=p">相册</a></li>
<!--
EOT;
}if($o_share_open){print <<<EOT
-->
					<li id="b_s"><a href="{$basename}q=browse&tab=s">分享</a></li>
<!--
EOT;
}if($db_dopen){print <<<EOT
-->
					<li id="b_d"><a href="{$basename}q=browse&tab=d">日志</a></li>
<!--
EOT;
}if($o_groups_open){print <<<EOT
-->
					<li id="b_g"><a href="{$basename}q=browse&tab=g">群组</a></li>
<!--
EOT;
}print <<<EOT
-->
					<li id="b_t"><a href="{$basename}q=browse&tab=t">最新帖子</a></li>
					<li id="b_r"><a href="{$basename}q=browse&tab=r">最新回复</a></li>
				</ul>
			</div>
</td></tr></table>
</div>
<div class="c"></div>
<div  class="wrapB cc">
<div class="contentB cc fl">
<script language="JavaScript">
setCurrent('b_{$tab}','b_h','current');
</script>
<!--
EOT;
if($tab == 'h'){print <<<EOT
-->
		<div class="cc">
			<div class="fl" style="padding:.8em 0;width:280px;">
				<div class="boxB pr cc">
<!--flash-->
<style>
.pwSlide {background:#fff;position:relative;width:280;overflow:hidden;height:190px;}
.pwSlide a:hover{text-decoration:none;}
.pwSlide .bg {position:absolute;left:0;bottom:-1px;width:100%;height:40px;background:$linkcolor;filter:alpha(opacity=39);-moz-opacity:0.39;opacity:0.39;}
.pwSlide h3 {position:absolute;left:10px;bottom:15px;_bottom:1px;width:95%;height:20px;line-height:16px;z-index:2;color:#fff;}
.pwSlide ul {margin:0;padding:0;position:absolute;right:5px;bottom:5px;_bottom:2px;z-index:2;}
.pwSlide ul li {list-style:none;float:left;width:18px;height:13px;line-height:15px;text-align:center;margin-left:1px;background: url($imgpath/focus1.gif) no-repeat;}
.pwSlide ul li a {display:block;width:18px;height:13px;font-size:10px;font-family:Tahoma;color:#FFFFFF;}
.pwSlide ul li a:hover, .pwSlide ul li a.sel {color:#fff;text-decoration:none;background: url($imgpath/focus2.gif) no-repeat;}
</style>

				<div id="pwSlidePlayer" class="pwSlide" onmouseover="pwSlidePlayer('pause');" onmouseout="pwSlidePlayer('goon');">
<!--
EOT;
$tmpCount = 0;
foreach ($newPics as $key=>$value) {
$tmpCount++;
print <<<EOT
-->
					<div id="Switch_$key" style="display:none;">
						<a href="$value[url]"><img src="$value[image]" title="$value[title]" width="280" />
                        <h3 style="display:block;">$value[title]</h3></a>
					</div>
<!--
EOT;
}print <<<EOT
-->
					<ul id="SwitchNav"></ul><div class="bg"></div>
				</div>
				<div class="c"></div>
				<script type="text/javascript" src="js/picplayer.js"></script>
				<script language="JavaScript">pwSlidePlayer('play',1,$tmpCount);</script>
				</div>
			</div>
			<div class="fr cc" style="padding:1em 1px; width:310px">
					<ul class="list-liA">
<!--
EOT;
foreach($newThreads as $value){print <<<EOT
-->
						<li><a href="mode.php?m=o&q=user&u=$value[authorid]" class="black fr">$value[author]</a><a href="$value[url]">$value[title]</a></li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
			</div>
		</div>
			<div class="cc">
				<h4 class="pdD bdbA"><span class="b">今日达人</span></h4>
				<div class="list-img cc list-img-B">
					<ul>
<!--
EOT;
foreach($members as $value){print <<<EOT
-->
						<li><a href="$value[url]"><img src="$value[image]"  class="portrait-m"/></a>
							<p><a href="$value[url]">$value[title]</a></p>
						</li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
				</div>
			</div>
			<div class="cc mt8" style="overflow:hidden">
				<h4 class="pdD bdbA"><span class="more fr"><a href="{$basename}q=browse&tab=w">更多</a></span><span class="b">记录</span></h4>
			<div class="cc pdD">
				<ul class="revert cc">
<!--
EOT;
foreach($newWrite as $value){print <<<EOT
-->
			<li class="cc"><a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-s fl"/></a> 
				<div><a href="{$basename}q=user&u=$value[uid]">$value[username]</a>: &nbsp;$value[content] &nbsp;<em class="w">$value[postdate]</em></div>
			</li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
			<div class="c"></div>
			</div></div>
<!--
EOT;
if($o_share_open){print <<<EOT
-->
			<div class="cc mt8" style="overflow:hidden">
				<h4 class="pdD bdbA"><span class="more fr"><a href="{$basename}q=browse&tab=s">更多</a></span><span class="b">分享</span></h4>
				<div class="list-dlA cc p10">
<!--
EOT;
if($newShares){
foreach($newShares as $value){
if($value[uid]==$winduid){
	$author = '你';
}else{
	$author = "<a href=\"{$basename}q=user&u=$value[uid]\">$value[username]</a> ";
}print <<<EOT
-->
		<dl class="cc" id="share_{$value[id]}">
<!--
EOT;
$ddclass = 'title2';
if($value[face]){
$ddclass = 'title1';
print <<<EOT
-->
			<dt class="fl"><img src="$value[face]" /></dt>
<!--
EOT;
}print <<<EOT
-->
			<dd class="$ddclass">
				<p style="margin:10px 0 0;">
					$author{$value[type_name]} <span class="gray f10">$value[postdate]</span>

				</p>
<!--
EOT;
if ($value[groupid] == 6 && $db_shield && $groupid != 3) {print <<<EOT
-->
				<span style="color:black;background-color:#ffff66">用户被禁言,该分享自动屏蔽!</span>
<!--
EOT;
} else {print <<<EOT
-->
				<p>
<!--
EOT;
if($value[type]=='video'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/vd.gif" class="vthumb" onclick="javascript:showShare('$value[host]','$value[hash]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='music'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='flash'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}print <<<EOT
-->
					$value[title]
				</p>
<!--
EOT;
if($value[descrip]){print <<<EOT
-->
				<p>$value[descrip]</p>
<!--
EOT;
}
}print <<<EOT
-->
			</dd>
		</dl>
<!--
EOT;
}}else{print <<<EOT
-->
<p class="text mt8">暂无分享信息</p>
<!--
EOT;
}print <<<EOT
-->
		</div></div>
<!--
EOT;
}print <<<EOT
-->
</div>
<div class="sidebarB cc fr mt8">
<!--
EOT;
if($db_phopen){print <<<EOT
-->
<div class="cc mb8 boxB pr">
<span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
			<h4 class="pdD bdbA"><span class="more fr"><a href="{$basename}q=browse&tab=p">更多</a></span><span class="b">相册</span></h4>
			<div class="cc pd8">
				<div class="table-list">
<!--
EOT;
if (!empty($albumdb)) {
foreach ($albumdb as $key => $value) {print <<<EOT
-->
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td class="tac table-list-img"><a href="{$basename}u=$value[ownerid]&q=photos&a=album&aid=$value[aid]"><img src="$value[lastphoto]" width="80" /></a></td>
					<td valign="top" style="line-height:2;"><a href="{$basename}u=$value[ownerid]&q=photos&a=album&aid=$value[aid]" class="f14 b blue pdr">{$value[aname]}</a>
						<p class="text">
						<a href="{$basename}q=user&uid=$value[ownerid]">$value[owner]</a>&nbsp;$value[photonum]&nbsp;张照片<br />
						更新于$value[lasttime]
						</p></td>
				</tr>
			</table>
<!--
EOT;
}} else {print <<<EOT
-->
		<table cellpadding="0" cellspacing="0" width="100%"><tr><td class="tac">暂时没有相册信息</td></tr></table>
<!--
EOT;
}print <<<EOT
-->
		</div></div></div>
<!--
EOT;
}if($o_groups_open){print <<<EOT
-->
		<div class="cc mb8 boxB pr">
		<span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
			<h4 class="pdD bdbA"><span class="more fr"><a href="{$basename}q=browse&tab=g">更多</a></span><span class="b">群组</span></h4>
			<div class="list-dlA">
				<dl>
<!--
EOT;
foreach($reGroups as $value){print <<<EOT
-->
					<dd class="cc p10"> <img src="$value[cnimg]" class="fl pdr" width="60" /><a href="{$basename}q=group&cyid=$value[id]" class="f14 b blue  pdr">$value[cname]</a><br />
						{$value[members]}成员</dd>
<!--
EOT;
}print <<<EOT
-->
				</dl>
			</div>
	</div>
<!--
EOT;
}if($db_dopen){print <<<EOT
-->
<div class="cc boxB mt8 pr">
<span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
				<h4 class="pdD bdbA"><span class="more fr"><a href="{$basename}q=browse&tab=d">更多</a></span><span class="b">日志</span></h4>
				<div class="list-dlA list-dlA-A cc" style="padding:5px;">
<!--
EOT;
if($newDiarys){
foreach($newDiarys as $value){
!$diarytype[$value[dtid]][name] && $diarytype[$value[dtid]][name] = '默认分类';
print <<<EOT
-->
		<dl class="cc pdD" id="diary_{$value[did]}">
				<dd><img src="$value[face]" class="portrait-s fl"/>&nbsp;<a href="$value[url]" target="_blank">$value[subject]</a><br />
				&nbsp;<a href="{$basename}q=user&u=$value[uid]" class="pdr black">$value[username]</a><span class="gray">$value[postdate]</span></dd>
		</dl>
<!--
EOT;
}}else{print <<<EOT
-->
<p class="text mt8">暂无日志</p>
<!--
EOT;
}print <<<EOT
-->
		</div></div>
<!--
EOT;
}print <<<EOT
-->
<!--日志结束-->
</div>
		<script language="javascript" src="mode/o/js/share.js"></script>
<!--
EOT;
}elseif($tab == 'w'){print <<<EOT
-->
<div class="c"></div>
	<div class="cc contentB fl" style="margin:.5em;overflow:hidden;">
		<ul class="revert cc">
<!--
EOT;
foreach($newWrite as $value){print <<<EOT
-->
			<li><a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-s fl"/></a> 
				<div class="cc"><a class="f14" href="{$basename}q=user&u=$value[uid]">$value[username]</a>: &nbsp;$value[content] &nbsp;<em class="w">$value[postdate]</em></div>
			</li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
		<div class="c"></div>
	</div>
</div>
<!--
EOT;
}elseif($tab == 'p'){print <<<EOT
-->
		<div class="cc mt8 contentB fl">
			<div class="table-list table-list-B">
<!--
EOT;
if (!empty($albumdb)) {
foreach ($albumdb as $key => $value) {print <<<EOT
-->
			<table cellpadding="0" cellspacing="0" width="100%" >
				<tr>
					<td class="tac table-list-img"><a href="{$basename}u=$value[ownerid]&q=photos&a=album&aid=$value[aid]"><img src="$value[lastphoto]" width="80" /></a></td>
					<td valign="top"><div style="overflow:hidden;width:400px;"><a href="{$basename}u=$value[ownerid]&q=photos&a=album&aid=$value[aid]" class="f14 b blue pdr">{$value[aname]}</a></div>
						<p class="text">
						<a href="{$basename}q=user&uid=$value[ownerid]">$value[owner]</a><br />
						<span class="gray">$value[photonum]张照片|更新于 $value[lasttime]</span><br />
<!--
EOT;
if (isset($smphoto[$value['aid']])) {print <<<EOT
-->
						<span class="list-img2">
<!--
EOT;
foreach ($smphoto[$value['aid']] as $k => $v) {print <<<EOT
-->
						<a href="{$basename}u=$value[ownerid]&q=photos&a=view&pid=$v[pid]"><img src="$v[path]" /></a>
<!--
EOT;
}print <<<EOT
-->
						</span>
						<a href="{$basename}u=$value[ownerid]&q=photos&a=album&aid=$value[aid]">浏览更多&laquo;</a>
<!--
EOT;
}else{print <<<EOT
-->

						相册暂时没有照片
<!--
EOT;
}print <<<EOT
-->
						</p></td>
				</tr>
			</table>
<!--
EOT;
}} else {print <<<EOT
-->
		<table cellpadding="0" cellspacing="0" width="100%"><tr><td class="tac">暂时没有相册信息</td></tr></table>
<!--
EOT;
}print <<<EOT
-->

		</div>
	</div>
</div>
<!--
EOT;
}elseif($tab == 's'){print <<<EOT
-->

			<div class="cc mt8 mb8 contentB fl">
				<div class="list-dlA list-dlA-A cc" style="overflow:hidden;">
<!--
EOT;
if($newShares){
foreach($newShares as $value){
if($value[uid]==$winduid){
	$author = '你';
}else{
	$author = "<a href=\"{$basename}q=user&u=$value[uid]\">$value[username]</a> ";
}print <<<EOT
-->
		<dl class="cc" id="share_{$value[id]}">
<!--
EOT;
$ddclass = 'title2';
if($value[face]){
$ddclass = 'title1';
print <<<EOT
-->
			<dt class="fl"><img src="$value[face]" /></dt>
<!--
EOT;
}print <<<EOT
-->
			<dd class="$ddclass">
				<p class="boxE pdtb3" style="padding-left:5px;">
					$author{$value[type_name]} <span class="gray f10">$value[postdate]</span>

				</p>
				<p class="f14 blue b" style="padding-left:20px;">
<!--
EOT;
if($value[type]=='video'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/vd.gif" class="vthumb" onclick="javascript:showShare('$value[host]','$value[hash]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='music'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='flash'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}print <<<EOT
-->
					$value[title]
				</p>
<!--
EOT;
if($value[descrip]){print <<<EOT
-->
				<p class="text" style="padding-left:20px;">$value[descrip]</p>
<!--
EOT;
}print <<<EOT
-->
			</dd>
		</dl>
<!--
EOT;
}}else{print <<<EOT
-->
<p class="text mt8">暂无分享信息</p>
<!--
EOT;
}print <<<EOT
-->
		</div></div>
</div>
<script language="javascript" src="mode/o/js/share.js"></script>
<!--
EOT;
}elseif($tab == 'd'){print <<<EOT
-->
<div class="cc contentB fl">
	<div class="table-list2">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
EOT;
if (!empty($newDiarys)) {
foreach ($newDiarys as $key => $value) {
!$diarytype[$value[dtid]][name] && $diarytype[$value[dtid]][name] = '默认分类';
print <<<EOT
-->
			<tr>
				<td>
					<a href="$value[url]" target="_blank" class="pdr">$value[subject]</a><br />
					$value[postdate]
				</td>
				<td><a href="{$basename}q=user&u=$value[uid]">$value[username]</a></td>
				<td>$value[c_num]/$value[r_num]</td>
			</tr>
<!--
EOT;
}} else {print <<<EOT
-->
			<tr>
				<td>没有日志</td>
			</tr>
<!--
EOT;
}print <<<EOT
-->
		</table>
	</div>
</div>
</div>
<!--
EOT;
}elseif($tab == 't' || $tab == 'r'){print <<<EOT
-->
<div class="cc contentB fl">
	<div class="table-list2">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
EOT;
if (!empty($article)) {
foreach ($article as $key => $value) {print <<<EOT
-->
			<tr>
				<td>
					<a href="$value[url]" target="_blank" class="pdr">$value[title]</a>$value[postdate]<br />
					<a href="thread.php?fid=$value[fid]" target="_blank" class="gray">{$value[froum]}</a>
				</td>
				<td><a href="{$basename}q=user&u=$value[authorid]">$value[author]</a></td>
				<td>$value[replies]/$value[hits]</td>
			</tr>
<!--
EOT;
}} else {print <<<EOT
-->
			<tr>
				<td>没有主题</td>
			</tr>
<!--
EOT;
}print <<<EOT
-->
		</table>
	</div>
</div>
</div>
<!--
EOT;
}elseif($tab == 'g'){print <<<EOT
-->
<div class="cc mt8 contentB fl">
	<div class="table-list table-list-B">
<!--
EOT;
if (!empty($reGroups)) {
foreach ($reGroups as $key => $value) {
print <<<EOT
-->
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td class="tac"><a href="{$basename}q=group&cyid=$value[id]"><img src="$value[cnimg]" onload="imgResize(this,100)" /></a></td>
					<td width="60%" valign="top" style="line-height:2">
					<a href="{$basename}q=group&cyid=$value[id]" class="f14 b blue pdr">{$value[cname]}</a><br />
<!--
EOT;
if(isset($cMembers[$key])){print <<<EOT
-->
					<div class="fr"><span class="fl boxA pdD">您已是该群成员&nbsp;<a href="{$basename}q=group&a=out&cyid=$value[id]" onclick="return ajaxurl(this);" class="gray">退出该群</a></span></div>
<!--
EOT;
}print <<<EOT
-->
					<p class="text">分类：{$o_classdb[$value[classid]]}<br />人数：<span class="blue">$value[members]</span><br />简介：$value[descrip]<br />创建时间：$value[createtime]</p></td>
					<td width="35%" class="tar">
<!--
EOT;
if(isset($cMembers[$key])){print <<<EOT
-->
<!--
EOT;
}else{print <<<EOT
-->
					<a href="{$basename}q=group&a=join&cyid=$value[id]" onclick="return ajaxurl(this);">加入该群</a>&nbsp;
<!--
EOT;
}print <<<EOT
-->
					</td>
				</tr>
			</table>
<!--
EOT;
}} else {print <<<EOT
-->
		<p class="gray2">您还没有加入任何群组！</p>
<!--
EOT;
}print <<<EOT
-->
</div></div>
</div>
<script language="JavaScript">
function ajaxurl(o) {
	read.obj = o;
	ajax.send(o.href,'',ajax.get);
	return false;
}
function imgResize(o, size) {
	if (o.width > o.height) {
		if (o.width > size) o.width = size;
	} else {
		if (o.height > size) o.height = size;
	}
}
</script>
<!--
EOT;
}print <<<EOT
-->
	</div>
	</div>
<!--
EOT;
?>-->